﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HookupAppForm.Dto
{
    public class CreateHKP_ToolSysReqDto
    {        
        [Required]
        [MaxLength(50)]
        public string ToolId { get; set; }
        [Required]
        [MaxLength(50)]
        public string SysNo { get; set; }
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 功率
        /// </summary>
        public decimal Power { get; set; }
        [MaxLength(50)]
        public string PowerUnit { get; set; }
        /// <summary>
        /// 流量
        /// </summary>
        public decimal FlowPeak { get; set; }
        [MaxLength(50)]
        public string FlowUnit { get; set; }
        /// <summary>
        /// 压力
        /// </summary>
        public decimal Pressure { get; set; }
        [MaxLength(50)]
        public string PressureUnit { get; set; }
        /// <summary>
        /// 管径尺寸
        /// </summary>
        [MaxLength(50)]
        public string OutSize { get; set; }
        [MaxLength(50)]
        public string OutSizeUnit { get; set; }
        /// <summary>
        /// 最低排水温度
        /// </summary>
        public decimal TemperatureWRTMin { get; set; }
        /// <summary>
        /// 最高排水温度
        /// </summary>
        public decimal TemperatureWRTMax { get; set; }
        /// <summary>
        /// 接口类型
        /// </summary>
        [MaxLength(50)]
        public string OutType { get; set; }
        /// <summary>
        /// 阀门需求
        /// </summary>
        public bool NeedValve { get; set; }
        /// <summary>
        /// 调压阀需求
        /// </summary>
        public bool NeedTap { get; set; }
        /// <summary>
        /// 压力表需求
        /// </summary>
        public bool NeedPreGauge { get; set; }
        /// <summary>
        /// 过滤器需求
        /// </summary>
        public bool NeedFilter { get; set; }
        /// <summary>
        /// 流量计需求
        /// </summary>
        public bool NeedFlowmeter { get; set; }
        /// <summary>
        /// 存水弯需求
        /// </summary>
        public bool NeedTrap { get; set; }
        /// <summary>
        /// 蜂鸣需求
        /// </summary>
        public bool NeedBellow { get; set; }
        /// <summary>
        /// 设备断路器需求
        /// </summary>
        public bool NeedBreaker { get; set; }

        public decimal FlowOper { get; set; }
        public decimal FlowAvg { get; set; }
        public string EquipmentID { get; set; }
        /// <summary>
        /// 是否派点，默认未派点
        /// </summary>
        public bool isPaiDian { get; set; } = false;
        /// <summary>
        /// 设备断路器需求
        /// </summary>
        public bool Wenduji { get; set; }
        /// <summary>
        /// 系统10大类（PW，PV,PD......）
        /// </summary>
        public string SystemType { get; set; }
    }
    public class HKP_ToolSysReqDto
    {
        [Required]
        public Guid Id { get; set; }
        [Required]
        [MaxLength(50)]
        public string ToolId { get; set; }
        [Required]
        [MaxLength(50)]
        public string SysNo { get; set; }
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 功率
        /// </summary>
        public decimal Power { get; set; }
        [MaxLength(50)]
        public string PowerUnit { get; set; }
        /// <summary>
        /// 流量
        /// </summary>
        public decimal FlowPeak { get; set; }
        [MaxLength(50)]
        public string FlowUnit { get; set; }
        /// <summary>
        /// 压力
        /// </summary>
        public decimal Pressure { get; set; }
        [MaxLength(50)]
        public string PressureUnit { get; set; }
        /// <summary>
        /// 管径尺寸
        /// </summary>
        [MaxLength(50)]
        public string OutSize { get; set; }
        [MaxLength(50)]
        public string OutSizeUnit { get; set; }
        /// <summary>
        /// 最低排水温度
        /// </summary>
        public decimal TemperatureWRTMin { get; set; }
        /// <summary>
        /// 最高排水温度
        /// </summary>
        public decimal TemperatureWRTMax { get; set; }
        /// <summary>
        /// 接口类型
        /// </summary>
        [MaxLength(50)]
        public string OutType { get; set; }
        /// <summary>
        /// 阀门需求
        /// </summary>
        public bool NeedValve { get; set; }
        /// <summary>
        /// 调压阀需求
        /// </summary>
        public bool NeedTap { get; set; }
        /// <summary>
        /// 压力表需求
        /// </summary>
        public bool NeedPreGauge { get; set; }
        /// <summary>
        /// 过滤器需求
        /// </summary>
        public bool NeedFilter { get; set; }
        /// <summary>
        /// 流量计需求
        /// </summary>
        public bool NeedFlowmeter { get; set; }
        /// <summary>
        /// 存水弯需求
        /// </summary>
        public bool NeedTrap { get; set; }
        /// <summary>
        /// 蜂鸣需求
        /// </summary>
        public bool NeedBellow { get; set; }
        /// <summary>
        /// 设备断路器需求
        /// </summary>
        public bool NeedBreaker { get; set; }

        public decimal FlowOper { get; set; }
        public decimal FlowAvg { get; set; }
        /// <summary>
        /// 实际流量
        /// </summary>
        public decimal FlowActual { get; set; }
        /// <summary>
        /// 是否派点，默认未派点
        /// </summary>
        public bool isPaiDian { get; set; } = false;
        /// <summary>
        /// 设备断路器需求
        /// </summary>
        public bool Wenduji { get; set; }
        /// <summary>
        /// 系统10大类（PW，PV,PD......）
        /// </summary>
        public string SystemType { get; set; }
    }
}
